package com.example.blogsystem.mapper;

import com.example.blogsystem.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    /**
     * 注册
     *
     * @param userInfo
     * @return
     */
    int register(UserInfo userInfo);

    UserInfo getUserInfoByName(@Param("username") String username);


    String getUsername(@Param(("id")) Integer id);
}
